import com.px.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Beans.xml");
        Student sutdent = applicationContext.getBean("sutdent", Student.class);
        System.out.println(sutdent.toString());
    }
}
